<template>
  <view class="container">
    <web-view :src="url" @message="handlerMessage" ref="webview"  class="webview"></web-view>
  </view>
</template>

<script setup lang="ts">
import {onLoad} from "@dcloudio/uni-app";
import {ref} from "vue";

//webview 的 url链接
const url = ref()
onLoad((options) => {
  url.value = options.url
})
</script>


<style scoped lang="scss">
.container {
  position: relative;
  width: 100%;
  height: 100%;

}
.webview {
  width: 100%;
  height: 100%;
}
</style>
